package resk

import (
	rpcapi "gitee.com/Hu-Lyndon/distill-resk/apis/rpcapi"
	_ "gitee.com/Hu-Lyndon/distill-resk/apis/web"
	_ "gitee.com/Hu-Lyndon/distill-resk/core/account"
	_ "gitee.com/Hu-Lyndon/distill-resk/core/envelopes"
	"gitee.com/Hu-Lyndon/distill-resk/infra"
	"gitee.com/Hu-Lyndon/distill-resk/infra/api"
	"gitee.com/Hu-Lyndon/distill-resk/infra/base"
	"gitee.com/Hu-Lyndon/distill-resk/infra/db"
	"gitee.com/Hu-Lyndon/distill-resk/infra/gorpc"
	"gitee.com/Hu-Lyndon/distill-resk/infra/hook"
	_ "gitee.com/Hu-Lyndon/distill-resk/infra/log" // 这里导入日志包，是为了在init()方法中，直接初始化控制台日志输出
	"gitee.com/Hu-Lyndon/distill-resk/infra/register"
	"gitee.com/Hu-Lyndon/distill-resk/infra/validator"
	"gitee.com/Hu-Lyndon/distill-resk/infra/web"
	"gitee.com/Hu-Lyndon/distill-resk/jobs"
)

func init() {
	infra.Register(&base.PropsStarter{})
	infra.Register(&db.DbxDatabaseStarter{})
	infra.Register(&db.XormDatabaseStarter{})
	//infra.Register(&log.LoggerStarter{}) // 如果需要输出日志到文件中，则可以打开这里，去初始化文件日志
	infra.Register(&validator.ValidatorStarter{})
	infra.Register(&gorpc.GoRPCStarter{})
	infra.Register(&rpcapi.GoRpcApiStarter{})
	infra.Register(&jobs.RefundExpiredJobStarter{})
	infra.Register(&web.IrisServerStarter{})
	infra.Register(&api.WebApiStarter{})
	infra.Register(&register.ConsulStarter{})
	infra.Register(&hook.HookStarter{})
}
